<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title>类与对象--类型与变量</title>
    </head>
    <body>
        <?php
        class ren {
          var $color;
          var $weight;
          
        };
       $chinaren=new ren();   //object 对象类型      字符串类型  
       $chinaren->color="yellow";
       var_dump($chinaren);
        ?>
    </body>
</html>
